package com.wanwen.entity;

import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;

public class Follow {
	@TableId(type = IdType.AUTO)
	private Integer id;//
	private Integer uid;//
	private Integer stuid;//
	private String remark;
	private String sname;//
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
	@DateTimeFormat(pattern="yyyy-MM-ddHH:mm:ss")  
	@TableField(value = "begin_time")
	private Date beginTime;
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
	@DateTimeFormat(pattern="yyyy-MM-ddHH:mm:ss")  
	@TableField(value = "end_time")
	private Date endTime;
	
	public String getRemark() {
		return remark;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}
	public Follow(Integer id, Integer uid, Integer stuid, String remark, String sname, Date beginTime, Date endTime) {
		super();
		this.id = id;
		this.uid = uid;
		this.stuid = stuid;
		this.remark = remark;
		this.sname = sname;
		this.beginTime = beginTime;
		this.endTime = endTime;
	}
	public Follow() {
		super();
	}
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public Integer getUid() {
		return uid;
	}
	public void setUid(Integer uid) {
		this.uid = uid;
	}
	public Integer getStuid() {
		return stuid;
	}
	public void setStuid(Integer stuid) {
		this.stuid = stuid;
	}
	public String getSname() {
		return sname;
	}
	public void setSname(String sname) {
		this.sname = sname;
	}
	public Date getBeginTime() {
		return beginTime;
	}
	public void setBeginTime(Date beginTime) {
		this.beginTime = beginTime;
	}
	public Date getEndTime() {
		return endTime;
	}
	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}
	@Override
	public String toString() {
		return "Follow [id=" + id + ", uid=" + uid + ", stuid=" + stuid + ", remark=" + remark + ", sname=" + sname
				+ ", beginTime=" + beginTime + ", endTime=" + endTime + "]";
	}

}
